-- GENERATED SPELL FOR [Illidari Satyr] --


function spell0_21656(pUnit, Event) --@Curse of Pain,n/a--
pUnit:FullCastSpellOnTarget(38048,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21656', 0, 1)
end

function Sorts_21656(pUnit, Event)
local choix_sorts_21656 = math.random(0, 0)
if choix_sorts_21656 == 0 then
pUnit:RegisterEvent('spell0_21656', 1, 1)
end
end

function mob21656_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21656', math.random(1500, 3000), 1)
end

function mob21656_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21656_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21656_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21656, 1, 'mob21656_Action')
RegisterUnitEvent(21656, 2, 'mob21656_Leave')
RegisterUnitEvent(21656, 3, 'mob21656_Kill')
RegisterUnitEvent(21656, 4, 'mob21656_Die')
